package com.qys.livesMall.anchor.model.dto.task.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class SellLivesApplySaveDTO {


    @Schema(description = "主播带货任务编号")
    @NotNull(message = "{请选择主播带货任务}")
    private Long anchorSellTaskId;

    @Schema(description = "申请开播时间（当前时间之后）",example = "2023-04-24")
    @NotNull(message = "请选择申请开播时间")
    @Future(message = "{申请开播时间在当前时间之后}")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    private LocalDate startLivesTime;

    @Schema(description = "直播场次名称")
    private String livesSessionName;
}
